<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>canvas帧--实现动画</title>
    <style>
        *{padding:0;margin:0;}
        canvas{display:block;background:white}
    </style>
</head>
<script src="https://cdn.jsdelivr.net/npm/vue"></script>
<body>
<!-- 在双花括号中 -->
<div id="app">
    {{ 1 | filters2 }}
</div>


<script>

    var app = new Vue({
        el: "#app",
        data: {
            message: 199,
            priceCount:.8
        },
        filters:{
            filters2:function (arg) {
                if(arg==1){
                    return "hello";
                }else {
                    return "word";
                }
            }
        }
    });

</script>
</body>
</html>